package sg.edu.nus.iss.vmcs.customer;

import java.awt.event.*;

public class TerminateButtonListener implements ActionListener {
	
	private TransactionController trxCtrl;
	
	public TerminateButtonListener (TransactionController trxCtrl) { //chg arg tc to trxCtrl
		this.trxCtrl = trxCtrl;
	}
	
	public void actionPerformed (ActionEvent e) {
		trxCtrl.cancelTransaction();
	}

}
